package com.liddhome.entity;

import java.io.Serializable;
import java.util.Date;
/**
 * 语录实体
 * @author lidd
 *
 */
public class Quotation implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;  //编号
	private Date createDate;  //创建日期时间
	private String content;  //语录内容
	private String fromwho;  //出处
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getFromwho() {
		return fromwho;
	}
	public void setFromwho(String fromwho) {
		this.fromwho = fromwho;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + ((createDate == null) ? 0 : createDate.hashCode());
		result = prime * result + ((fromwho == null) ? 0 : fromwho.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Quotation other = (Quotation) obj;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (createDate == null) {
			if (other.createDate != null)
				return false;
		} else if (!createDate.equals(other.createDate))
			return false;
		if (fromwho == null) {
			if (other.fromwho != null)
				return false;
		} else if (!fromwho.equals(other.fromwho))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Quotation [id=" + id + ", createDate=" + createDate + ", content=" + content + ", fromwho=" + fromwho + "]";
	}
	
	
	
}
